// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import createRooter from './router'
const router = createRooter()
import * as Vant from 'vant'
import 'vant/lib/index.css'
import 'vant/lib/icon/local.css'
Vue.use(Vant)
Vue.config.productionTip = false

/* eslint-disable no-new */

// 导出一个工厂函数，用于创建新的
// 应用程序、router 和 store 实例
export function createApp () {
  const app = new Vue({
    // 根实例简单的渲染应用程序组件。
    router,
    render: h => h(App)
  })
  return {app}
}

